package com.easylinkin.linkappapi.ruleengine.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.easylinkin.linkappapi.ruleengine.entity.RuleCondition;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 条件器 Mapper 接口
 * </p>
 *
 * @author TongJie
 * @since 2020-08-24
 */
public interface RuleConditionMapper extends BaseMapper<RuleCondition> {

    List<RuleCondition> getRuleConditions(@Param("ruleCondition") RuleCondition ruleCondition);

    IPage<RuleCondition> getRuleConditions(@Param("page") Page page, @Param("ruleCondition") RuleCondition ruleCondition);

    RuleCondition getRuleCondition(@Param("id") String id);

    List<RuleCondition> getRuleConditionWithExpressions(@Param("ruleCondition") RuleCondition ruleCondition);

    int batchInsert(@Param("list") List<RuleCondition> list);
}
